package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.BaseClazz;
import com.ftg.product.exam.entity.SysEmployee;
import com.ftg.product.exam.entity.SysOrganizations;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 班级信息表 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-15
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class BaseClazzDTO extends BaseClazz  {
    private static final long serialVersionUID = -7992505186575388122L;

    /**
    * 关联字段 SysEmployee.empname
    */
    @BindQuery(comparison = Comparison.EQ, entity = SysEmployee.class, field = "empname", condition = "this.teacode=id")
    private String teacodeEmpname;
    /**
    * 关联字段 SysOrganizations.orgname
    */
    @BindQuery(comparison = Comparison.EQ, entity = SysOrganizations.class, field = "orgname", condition = "this.orgcode=id")
    private String orgcodeOrgname;
}